Socket
Socket
Sign inDemoInstall

@iota/signing

Package Overview
Dependencies
Maintainers
5
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iota/signing

IOTA Signing Scheme


Version published
Maintainers
5
Created
Source

@iota/signing

IOTA Signing Scheme

Installation

Install using npm:

npm install @iota/signing

or using yarn:

yarn add @iota/signing

API Reference

signing~subseed(seed, index)

ParamTypeDescription
seedInt8ArraySeed trits
indexnumberPrivate key index

Returns: Int8Array - subseed trits

signing~key(subseed, length)

ParamTypeDescription
subseedInt8ArraySubseed trits
lengthnumberPrivate key length

Returns: Int8Array - Private key trits

signing~digests(key)

ParamTypeDescription
keyInt8ArrayPrivate key trits

signing~address(digests)

ParamTypeDescription
digestsInt8ArrayDigests trits

Returns: Int8Array - Address trits

signing~digest(normalizedBundleFragment, signatureFragment)

ParamTypeDescription
normalizedBundleFragmentarrayNormalized bundle fragment
signatureFragmentInt8ArraySignature fragment trits

Returns: Int8Array - Digest trits

signing~signatureFragment(normalizeBundleFragment, keyFragment)

ParamTypeDescription
normalizeBundleFragmentarraynormalized bundle fragment
keyFragmentkeyFragmentkey fragment trits

Returns: Int8Array - Signature Fragment trits

signing~validateSignatures(expectedAddress, signatureFragments, bundleHash)

ParamTypeDescription
expectedAddressstringExpected address trytes
signatureFragmentsarrayArray of signatureFragments trytes
bundleHashstringBundle hash trytes

signing~normalizedBundleHash(bundlehash)

ParamTypeDescription
bundlehashHashBundle hash trytes

Normalizes the bundle hash, with resulting digits summing to zero.

Returns: Int8Array - Normalized bundle hash

Keywords

FAQs

Package last updated on 11 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc